export default {
    mounted(el, bindings) {
        const permissions = JSON.parse(localStorage.getItem("userdetail")).auths
        const needpermissions = bindings.value
        let  haspermission = permissions.includes(needpermissions)
        if (permissions[0] == '*:*:*') {
            haspermission = true
        }
        if (!haspermission) {
            el.style.display = "none"
        }
    }
}